Image

This class represents pixel data on RAM (CPU Powered) this is useful for loading images on another thread and then sending it to the GPU

Constructors

this
this(uint width, uint height, ubyte bytesPerPixel)
Undocumented in source.
this
this(string path)
Undocumented in source.
this
this(string path, ubyte[] buffer, void delegate(IImage self) onSuccess, void delegate() onFailure)

Loads an arbitrary buffer which will be decoded by the decoder.

Members

Aliases

h
alias h = height
Undocumented in source.
w
alias w = width
Undocumented in source.

Functions

convertPalettizedToRGBA
ubyte[] convertPalettizedToRGBA()
Undocumented in source. Be warned that the author may not have intended to support it.
getBytesPerPixel
ubyte getBytesPerPixel()
Undocumented in source. Be warned that the author may not have intended to support it.
getHeight
uint getHeight()
Undocumented in source. Be warned that the author may not have intended to support it.
getName
string getName()
Undocumented in source. Be warned that the author may not have intended to support it.
getPalette
const(ubyte[]) getPalette()
Undocumented in source. Be warned that the author may not have intended to support it.
getPixels
const(ubyte[]) getPixels()
Undocumented in source. Be warned that the author may not have intended to support it.
getWidth
uint getWidth()
Undocumented in source. Be warned that the author may not have intended to support it.
hasLoadedData
bool hasLoadedData()
Undocumented in source. Be warned that the author may not have intended to support it.
isReady
bool isReady()
Undocumented in source. Be warned that the author may not have intended to support it.
loadFromMemory
bool loadFromMemory(ubyte[] data, void delegate(IImage self) onSuccess, void delegate() onFailure)
Undocumented in source. Be warned that the author may not have intended to support it.
loadRaw
void loadRaw(ubyte[] pixels, int width, int height, ubyte bytesPerPixel)
Undocumented in source. Be warned that the author may not have intended to support it.
monochromeToRGBA
ubyte[] monochromeToRGBA()
Undocumented in source. Be warned that the author may not have intended to support it.
onDispose
void onDispose()
Undocumented in source. Be warned that the author may not have intended to support it.
onFinishLoading
void onFinishLoading()
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

getPixelImage
immutable(IImage) getPixelImage()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

bitsPerPixel
ushort bitsPerPixel;
Undocumented in source.
bytesPerPixel
ubyte bytesPerPixel;
Undocumented in source.
decoder
IHipImageDecoder decoder;
height
int height;
Undocumented in source.
imagePath
string imagePath;
Undocumented in source.
pixels
ubyte[] pixels;
Undocumented in source.
width
int width;
Undocumented in source.

Meta